package org.example.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 当前注解只能使用在接口上
 * @author youshang
 * @date 2021/02/09 15:06
 **/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ProducerKafkaMessage {

    /**
     * topic
     */
    @AliasFor("value")
    String topic() default "";

    @AliasFor("topic")
    String value() default "";
}
